package com.learner.blog.repository;

import com.learner.pojo.blog.BlogColection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
* @author ice2020x
* @Date: BlogCollectionRepository
* @Description: 博客收藏
**/
@Repository
public interface BlogColectionRespository extends JpaRepository<BlogColection, String> {

    /**
     * 根据博客id和用户id获取博客收藏信息
     *
     * @param blogId 博客id
     * @param userId 用户id
     * @return 结果
     */
    BlogColection findBlogColectionByBlogIdAndUserId(String blogId, String userId);
}
